@import './variable.scss';
@import './base.scss';

header {
    .nav {
        width: 100%;
        height: 36px;
        background-color: #f5f5f5;
        border-bottom: 1px solid #eee;
        margin-bottom: 140px;

        .navBox {
            width: 990px;
            margin: 0 auto;
            line-height: 36px;
            font-size: 12px;
            color: #6c6c6c;
            margin-bottom: 20px;
            overflow: hidden;

            .loginBox {
                float: left;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }

            .loginShadow {
                display: none;
                padding: 20px;
                box-sizing: border-box;
                width: 270px;
                height: 150px;
                background-color: #fff;
                box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
                position: fixed;
                top: 35px;
                left: 138px;
                z-index: 100;

                .zhezhao {
                    width: 180px;
                    height: 36px;
                    position: fixed;
                    top: 0;
                    left: 138px;
                    background-color: rgba(0, 0, 0, 0);
                }

                .shadowImag {
                    width: 100%;
                    line-height: 20px;
                    text-align: left;

                    span {
                        float: right;
                        padding: 0px 10px;

                        &:hover {
                            color: $theme;
                            cursor: pointer;
                        }
                    }
                }

                .shadowImg {
                    width: 50px;
                    height: 50px;
                    border-radius: 25px;
                    overflow: hidden;
                }

                .shadowState {
                    text-align: center;
                    line-height: 24px;
                    color: #ff934c;
                    border: 1px solid #ff934c;
                    background-color: rgb(254, 246, 229);
                }
            }

            .navMenu {
                float: right;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }
        }
    }

    .searchBigBox {
        @extend type_area;
        height: 120px;

        .logo {
            float: left;
        }

        .searchBox {
            width: 688px;
            height: 80px;
            float: left;

            .search {
                width: 688px;
                height: 40px;
                border: 3px solid $theme;
                box-sizing: border-box;
                padding: 5px;
                position: relative;
                margin-bottom: 10px;

                input {
                    width: 100%;
                    height: 100%;
                    font-size: 12px;
                    color: #333;
                    outline: none;
                    border: none;
                }

                button {
                    width: 95px;
                    height: 40px;
                    background-color: $theme;
                    color: #fff;
                    position: absolute;
                    right: -3px;
                    top: -3px;
                    outline: none;
                    border: none;
                    cursor: pointer;
                    font-size: 18px;
                }
            }

            ul {
                li {
                    font-size: 12px;
                    color: #9b9b9b;
                    float: left;
                    padding-right: 20px;

                    &.active {
                        color: $theme;
                    }

                    &:hover {
                        color: $theme;
                    }
                }
            }
        }
    }
}

section {
    @extend type_area;

    .top {
        width: 1200px;
        height: 40px;
        border: 1px solid #d8d8d8;
        font-size: 12px;
        color: #4a4a4a;
        line-height: 40px;
        background: #fff;
        margin-bottom: 20px;

        .left {
            float: left;
            padding: 0px 20px;
            box-sizing: border-box;
            border-right: 1px solid #ccc;

            input {
                width: 48px;
                height: 24px;
                border: 1px solid #ccc;
            }
        }
    }

    .cent {
        display: flex;
        flex-wrap: wrap;

        .goods {
            &:hover {
                border: 1px solid $theme;
            }

            * {
                pointer-events: none;
            }

            width: 238px;
            height: 370px;
            border: 1px solid #f2f2f2;
            box-sizing: border-box;
            cursor: pointer;

            .goodPic {
                padding: 20px 20px 0px 20px;
                box-sizing: border-box;
                width: 240px;
                height: 240px;

                img {
                    width: 198px;
                    height: 198px;
                }
            }

            .goodsInt {
                padding: 0px 20px;
                box-sizing: border-box;

                .goodsTitle {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    font-size: 14px;
                    color: #9b9b9b;
                    line-height: 20px;

                    &:hover {
                        color: $theme;
                    }
                }

                .goodsPrice {
                    .goodsPrice1 {
                        line-height: 25px;
                        font-size: 18px;
                        color: $theme;
                        font-weight: 700;
                    }

                    .goodsPrice2 {
                        line-height: 20px;
                        font-size: 14px;
                        color: #9b9b9b;
                        margin-left: 10px;
                    }
                }

                .goodsStore {
                    background: url(../img/list/店铺.png) no-repeat left center;
                    background-size: 12px 12px;
                    font-weight: 100%;
                    text-indent: 16px;
                    font-size: 12px;
                    color: #9b9b9b;
                    line-height: 22px;
                    margin-bottom: 4px;
                    border-bottom: 1px solid #f2f2f2;
                }

                .goodsSale {
                    font-size: 12px;
                    color: #9b9b9b;
                    line-height: 22px;
                    text-align: right;
                }
            }
        }
    }

    .bott {
        width: 1200px;
        margin: 30px auto;
        text-align: center;
        color: #4a4a4a;

        span {
            padding: 10px 20px;
            border: 1px solid #ccc;
            margin: 20px;

            &:hover {
                color: $theme;
                border: 1px solid $theme;
                cursor: pointer;
            }
        }
    }
}

.guess {
    @extend type_area;
    height: 42px;
    background: #f5f5f5;
    border: 1px solid #e9e9e9;
    padding-left: 20px;
    line-height: 42px;
    font-size: 12px;
    color: #999;
    box-sizing: border-box;

    span {
        border-right: 1px solid #666;
        padding: 0 13px 0 12px;
        color: #333;
        text-decoration: none;
        cursor: pointer;
        line-height: 32px;
    }
}

footer {
    @extend type_area;
    height: 150px;
    padding: 30px 0 0 0;

    div {
        width: 940px;

        a {
            padding-right: 12px;
            margin-right: 12px;
            color: #ccc;
            font-size: 12px;
            text-decoration: none;
            border-right: 1px solid #ccc;

            &:hover {
                color: #000;
                text-decoration-line: underline;
            }
        }
    }

    img {
        filter: grayscale(100%);
        width: 40px;
        display: inline-block;
        margin-right: 10px;
        margin-top: 10px;

        &:hover {
            filter: grayscale(0%);
        }
    }
}